package com.whlilong.jxc.treemodel;

import java.util.ArrayList;
import java.util.List;

public class KeshangTreeParent {
	private String keshangarea;
	
	private List<KeshangTreeChildren> keshangTreeChildren;
	
	public KeshangTreeParent(String keshangarea){
		this.keshangarea = keshangarea;
		keshangTreeChildren = new ArrayList<KeshangTreeChildren>();
		
	}
	
	//添加子节点
	public void add(KeshangTreeChildren ks){
		keshangTreeChildren.add(ks);
		ks.setKeshangParent(this);
	}

	public String getKeshangarea() {
		return keshangarea;
	}

	public void setKeshangarea(String keshangarea) {
		this.keshangarea = keshangarea;
	}

	public List<KeshangTreeChildren> getKeshangTreeChildren() {
		return keshangTreeChildren;
	}

	public void setKeshangTreeChildren(List<KeshangTreeChildren> keshangTreeChildren) {
		this.keshangTreeChildren = keshangTreeChildren;
	}
	
	

}
